<?php

session_start();
include_once 'functions/function.php';
include_once 'functions/newForum.class.php';
$Db = Db();

//function deleteforum ($forumId, $userId, $owner) {
 /*******************************************************************
 //this goes on home.php , makes link only appear if user owns forum
 if($_SESSION['id'] === $userId){
 if( $userId == $owner){
************************************************************************/
 $forum_query = $Db->Db("UPDATE forum SET isDeleted = t where where forumId = $forumId"); 
 header('location: home.php'); 
 
  if (mysql_error() != "") {
     showheader("MySQL Error ".mysql_error());
     ?>
     <br><p><center><b><FONT SIZE="-1" FACE="Trebuchet MS,Arial,Helvetica">There was an Error -- <?php echo mysql_error() ?></b></center></p>
     <?php
     showfooter();
     exit;
   }
 


